﻿<dx:DXWindow x:Class="Updater.Wpf.Controls.DxUpdateDetailsControl"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
        mc:Ignorable="d"
        ResizeMode="NoResize" Background="#D8E8FE"
        ShowInTaskbar="False" Icon="pack://application:,,,/Updater.Wpf;component/Resources/Icons/information.png"
        xmlns:properties="clr-namespace:Updater.Wpf.Properties;assembly=Updater.Wpf"
        xmlns:viewModels="clr-namespace:Updater.Wpf.ViewModels;assembly=Updater.Wpf"
             xmlns:utils="clr-namespace:Updater.Wpf.Utils;assembly=Updater.Wpf"
             Title="{x:Static properties:Resources.ChangeLog}" Height="391" Width="506"
        Loaded="OnUpdateDetailsControlLoaded" WindowStartupLocation="CenterOwner"
        d:DataContext="{d:DesignInstance viewModels:HtmlUpdateDetailsViewModel}">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <WebBrowser x:Name="ChangeLogBrowser" />
        <StackPanel Grid.Row="1" Orientation="Horizontal"
                    HorizontalAlignment="Right" Margin="4,6,4,4">
            <Button Content="{x:Static properties:Resources.DownloadAndInstall}"
                    Visibility="{Binding CanDownloadAndInstallUpdate,Converter={utils:BooleanToVisibilityConverterExtension}}"
                    IsDefault="True" Padding="10,3" Click="OnDownloadAndInstallUpdateClick" />
            <Button Content="{x:Static properties:Resources.Close}" Padding="10,3" Margin="3,0,0,0" IsCancel="True" />
        </StackPanel>
    </Grid>
</dx:DXWindow>